package com.ytjj.qmyx.admin.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(value = "UroraChattinginfo", description = "聊天记录")
public class UroraChattinginfo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "聊天记录ID")
    private Integer id;

    @ApiModelProperty(value = "会话ID")
    private Integer sessionId;

    @ApiModelProperty(value = "发送方ID")
    private Integer sendUserId;

    @ApiModelProperty(value = "接收方ID")
    private Integer receiveUserId;

    @ApiModelProperty(value = "消息创建时间即发送时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdBy;

    @ApiModelProperty(value = "是否已读 0-未读 1-已读")
    private Integer rea;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "消息类型 0-文本 1-JSON字符串")
    private Integer type;

    @ApiModelProperty(value = "状态 0：存在；1：不存在")
    private Integer statu;
}
